import request from '@/utils/request'

export function recommend() {
    return request({
        url: '/web/api/v1/recommend/video',
        method: 'post'
    })
}

export function browse(data) {
    return request({
        url: '/web/api/v1/browse/user/video',
        method: 'post',
        data
    })
}

export function record(data) {
    return request({
        url: '/web/api/v1/video/upload/image/record',
        method: 'post',
        data
    })
}

export function commit(data) {
    return request({
        url: '/web/api/v1/get/commit/info',
        method: 'post',
        data
    })
}

export function like(data) {
    return request({
        url: '/web/api/v1/commit/like',
        method: 'post',
        data
    })
}

export function bookmark(data) {
    return request({
        url: '/web/api/v1/video/bookmark',
        method: 'post',
        data
    })
}

export function recordVideo(data) {
    return request({
        url: '/web/api/v1/record/user/video/',
        method: 'post',
        data
    })
}

export function likeBookInfo(data) {
    return request({
        url: '/web/api/v1/user/like/book/info',
        method: 'post',
        data
    })
}

export function createCommit(data) {
    return request({
        url: '/web/api/v1/create/commit',
        method: 'post',
        data
    })
}

export function videoBookmark(data) {
    return request({
        url: '/web/api/v1/get/video/bookmark',
        method: 'post',
        data
    })
}

export function userNotice(data) {
    return request({
        url: '/web/api/v1/get/user/notice',
        method: 'post',
        data
    })
}

export function commitLike(data) {
    return request({
        url: '/web/api/v1/get/commit/like',
        method: 'post',
        data
    })
}